package com.huowenjie.web;

import com.huowenjie.api.TestApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class TestRibbonCOntroller {

    @Value("${server.port}")
    private String port;

    @Autowired
    TestApi testApi;

    @RequestMapping("test01/{name}")
    public String test(@PathVariable("name") String name){

        String test002 = testApi.test002(name);

        //System.out.println("调用错误回调接口"+name);
        return test002;
    }

}
